
#ifndef UI_SENSORVIEWERPC_H
#define UI_SENSORVIEWERPC_H

#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QMainWindow>
#include <QtWidgets/QMenuBar>
#include <QtWidgets/QStatusBar>
#include <QtWidgets/QToolBar>
#include <QtWidgets/QWidget>
#include <QtWidgets/QMdiArea>
#include <QtWidgets/QLabel>
#include <QtWidgets/QHBoxLayout>

QT_BEGIN_NAMESPACE

class UiOfMainWindow
{
public:
	QMenuBar* menu_bar;
	QStatusBar* status_bar_info;
	QMdiArea* central_w;
	QMenu* menu_file;
	QAction* act_exit;
	QMenu* menu_sensor;
	QAction* act_accelerometer;
	QAction* act_ambient_temperature;
	QAction* act_gravity;
	QAction* act_gyroscope;
	QAction* act_light;
	QAction* act_linear_acceleration;
	QAction* act_magnetic_field;
	QAction* act_orientation;
	QAction* act_pressure;
	QAction* act_proximity;
	QAction* act_relative_humidity;
	QAction* act_rotation_vector;
	QMenu* menu_help;
	QAction* act_about;
	QLabel* label_local_ip;
	QLabel* label_local_port;
	QLabel* label_sender_ip;
	QLabel* label_is_online;

	QMenu* menu_close;
	QAction* act_close;

	void setupUi(QMainWindow* main_win)
	{
		main_win->resize(600, 400);

		menu_bar = new QMenuBar(main_win);
		main_win->setMenuBar(menu_bar);

		central_w = new QMdiArea;
		main_win->setCentralWidget(central_w);

		status_bar_info = new QStatusBar(main_win);
		main_win->setStatusBar(status_bar_info);

		

		label_local_ip = new QLabel(main_win);
		label_local_ip->setText(QApplication::tr("Local IP:"));
		status_bar_info->addWidget(label_local_ip,2);

		label_local_port = new QLabel(main_win);
		label_local_port->setText(QApplication::tr("Local PORT:"));
		status_bar_info->addWidget(label_local_port, 2);

		label_sender_ip = new QLabel(main_win);
		label_sender_ip->setText(QApplication::tr("Sender IP:"));
		status_bar_info->addWidget(label_sender_ip, 2);


		label_is_online = new QLabel(main_win);
		label_is_online->setText(QApplication::tr("offline"));
		label_is_online->setStyleSheet("color:red");
		status_bar_info->addWidget(label_is_online, 1);


		menu_file = new QMenu(QApplication::tr("File"), main_win);
		menu_bar->addMenu(menu_file);
		act_exit = new QAction(QApplication::tr("Exit"), main_win);
		menu_file->addAction(act_exit);

		menu_sensor = new QMenu(QApplication::tr("Sensor"), main_win);
		menu_bar->addMenu(menu_sensor);
		act_accelerometer = new QAction(QApplication::tr("Accelerometer"), main_win);
		menu_sensor->addAction(act_accelerometer);
		act_ambient_temperature = new QAction(QApplication::tr("Ambient Temperature"), main_win);
		menu_sensor->addAction(act_ambient_temperature);
		act_gravity = new QAction(QApplication::tr("Gravity"), main_win);
		menu_sensor->addAction(act_gravity);
		act_gyroscope = new QAction(QApplication::tr("Gyroscope"), main_win);
		menu_sensor->addAction(act_gyroscope);
		act_light = new QAction(QApplication::tr("Light"), main_win);
		menu_sensor->addAction(act_light);
		act_linear_acceleration = new QAction(QApplication::tr("Linear Acceleration"), main_win);
		menu_sensor->addAction(act_linear_acceleration);
		act_magnetic_field = new QAction(QApplication::tr("Magnetic"), main_win);
		menu_sensor->addAction(act_magnetic_field);
		act_orientation = new QAction(QApplication::tr("Orientation"), main_win);
		menu_sensor->addAction(act_orientation);
		act_pressure = new QAction(QApplication::tr("Pressure"), main_win);
		menu_sensor->addAction(act_pressure);
		act_proximity = new QAction(QApplication::tr("Proximity"), main_win);
		menu_sensor->addAction(act_proximity);
		act_relative_humidity = new QAction(QApplication::tr("Relative Humidity"), main_win);
		menu_sensor->addAction(act_relative_humidity);
		act_rotation_vector = new QAction(QApplication::tr("Rotation Vector"), main_win);
		menu_sensor->addAction(act_rotation_vector);

		menu_help = new QMenu(QApplication::tr("Help"), main_win);
		menu_bar->addMenu(menu_help);
		act_about = new QAction(QApplication::tr("About"), main_win);
		menu_help->addAction(act_about);

		main_win->setWindowIcon(QIcon(":/images/sensor.ico"));
		
		retranslateUi(main_win);

		QMetaObject::connectSlotsByName(main_win);
	} // setupUi

	void retranslateUi(QMainWindow *main_win)
	{
		main_win->setWindowTitle(QApplication::translate("main_win", "SensorViewerPC", 0));
	} // retranslateUi

};

QT_END_NAMESPACE

#endif // UI_SENSORVIEWERPC_H
